added samples
[windows-sources.git] / sdk / samples / CrossTechnologySamples / MSBuildG / resource libraries / resources_vista.xaml
bloba14aa9f99c8eed3979b3e79a37acdf09a6c7e4d5
1 <ResourceDictionary
2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     x:Class="Microsoft.Samples.MSBuildG.Resources_Vista"
5         xmlns:wpf="clr-namespace:Microsoft.Samples.MSBuildG"
6         xmlns:dw="clr-namespace:Microsoft.Samples.MSBuildG" >
8   <!--Dialog Window Style-->
9   <Style x:Key="DialogWindowStyle" TargetType ="{x:Type dw:DialogWindow}">
10     <Setter Property ="BorderThickness" Value ="0"/>
11     <Setter Property ="WindowStyle" Value ="None"/>
12     <Setter Property ="Template">
13       <Setter.Value>
14         <ControlTemplate TargetType ="{x:Type dw:DialogWindow}">
15           <Border Style="{DynamicResource WindowBorder}">
16             <DockPanel>
18               <!-- Begin Window Formatting and Bar -->
19               <Grid Style="{DynamicResource DialogWindowBar}">
21                 <Grid.ColumnDefinitions>
22                   <ColumnDefinition Width="Auto"/>
23                   <ColumnDefinition Width="*"/>
24                   <ColumnDefinition Width="Auto"/>
25                 </Grid.ColumnDefinitions>
26                 <Grid.RowDefinitions>
27                   <RowDefinition />
28                 </Grid.RowDefinitions>
30                 <StackPanel Style="{DynamicResource WindowControlButtons}">
31                   <Button Name="CloseWindowButton" Click="CloseDialogWindow" Style ="{DynamicResource DialogCloseButton}">X</Button>
32                 </StackPanel>
34                 <TextBlock Name="WindowTitleBar" Style="{DynamicResource DialogWindowTitle}" Text="{TemplateBinding Title}" MouseLeftButtonDown="MouseDown" />
35               </Grid>
38               <DockPanel DockPanel.Dock="Bottom" Background ="#545A60">
39                 <StackPanel Background ="#545A60" DockPanel.Dock ="Bottom" Orientation ="Vertical">
40                   <Rectangle Fill ="#aaaaaa" Height ="1"/>
41                   <Rectangle Fill ="#1F2227" Height ="1"/>
42                   <StackPanel x:Name="ButtonBarPanel"  Height ="36" Orientation ="Horizontal" Margin ="0,0,4,0" HorizontalAlignment ="Right" VerticalAlignment ="Center">
43                   </StackPanel>
44                 </StackPanel>
46                 <Grid Style="{DynamicResource DialogContentGrid}">
47                   <!--Begin Window Content-->
48                   <ContentPresenter Content ="{TemplateBinding Content}" Margin ="4,4,4,4"/>
49                 </Grid>
51               </DockPanel>
53             </DockPanel>
54           </Border>
56         </ControlTemplate>
57       </Setter.Value>
58     </Setter>
59   </Style>
61   <!--Main Window Style-->
62   <Style x:Key="WindowStyle" TargetType ="{x:Type Window}">
63     <Setter Property ="BorderThickness" Value ="0"/>
64     <Setter Property ="WindowStyle" Value ="None"/>
65     <Setter Property ="Template">
66       <Setter.Value>
67         <ControlTemplate TargetType ="{x:Type Window}">
69           <Border Style="{DynamicResource WindowBorder}">
70             <DockPanel>
72               <!-- Begin Window Formatting and Bar -->
73               <Grid Style="{DynamicResource WindowBar}">
74                 <Grid.ColumnDefinitions>
75                   <ColumnDefinition Width="Auto"/>
76                   <ColumnDefinition Width="*"/>
77                   <ColumnDefinition Width="Auto"/>
78                 </Grid.ColumnDefinitions>
79                 <Grid.RowDefinitions>
80                   <RowDefinition />
81                 </Grid.RowDefinitions>
83                 <!--Pre breaking change:  IsEnabled="{Binding RelativeSource=/TemplatedParent, Path=ResizeMode, Converter={StaticResource MaxConverter}}">[]</Button> -->
84                 <StackPanel Style="{DynamicResource WindowControlButtons}">
85                   <Button Name="MinimizeWindowButton" Click="MinimizeWindow"  Style ="{DynamicResource ControlButton}">_</Button>
86                   <Button Name="MaximizeWindowButton" Click="MaximizeWindow" Style ="{DynamicResource ControlButton}">[]</Button>
87                   <Button Name="CloseWindowButton" Click="CloseWindow" Style ="{DynamicResource CloseButton}">X</Button>
88                 </StackPanel>
90                 <TextBlock Name="WindowTitleBar" Style="{DynamicResource WindowTitle}" Text="{TemplateBinding Title}"  MouseLeftButtonDown="MouseDown"/>
92                 <Image Style="{DynamicResource WindowIcon}" Source="pack://application:,,,/Icons/Warning.ico"/>
94               </Grid>
96               <!--Begin Window Content-->
97               <ContentPresenter Content ="{TemplateBinding Content}"/>
99             </DockPanel>
100           </Border>
102         </ControlTemplate>
103       </Setter.Value>
104     </Setter>
105   </Style>
108   <!--Navigation Window (used for Wizard) Style-->
109   <Style x:Key="NavWindowStyle" TargetType ="{x:Type Window}">
110     <Setter Property ="BorderThickness" Value ="0"/>
111     <Setter Property ="WindowStyle" Value ="None"/>
112     <Setter Property ="Template">
113       <Setter.Value>
114         <ControlTemplate TargetType ="{x:Type Window}">
116           <Border Style="{DynamicResource WindowBorder}">
117             <DockPanel>
119               <!-- Begin Window Formatting and Bar -->
120               <Grid Style="{DynamicResource WindowBar}">
121                 <Grid.ColumnDefinitions>
122                   <ColumnDefinition Width="Auto"/>
123                   <ColumnDefinition Width="*"/>
124                   <ColumnDefinition Width="Auto"/>
125                 </Grid.ColumnDefinitions>
126                 <Grid.RowDefinitions>
127                   <RowDefinition />
128                 </Grid.RowDefinitions>
130                 <StackPanel Style="{DynamicResource WindowControlButtons}">
131                   <Button Name="MinimizeWindowButton" Click="MinimizeWindow"  Style ="{DynamicResource ControlButton}">_</Button>
132                   <Button Name="MaximizeWindowButton" Click="MaximizeWindow" Style ="{DynamicResource ControlButton}">[]</Button>
133                   <Button Name="CloseWindowButton" Click="CloseWindow" Style ="{DynamicResource CloseButton}">X</Button>
134                 </StackPanel>
136                 <TextBlock Name="WindowTitleBar" Style="{DynamicResource WindowTitle}" Text="{TemplateBinding Title}"  MouseLeftButtonDown="MouseDown"/>
138                 <Image Style="{DynamicResource WindowIcon}" Source="pack://application:,,,/Icons/Warning.ico"/>
140               </Grid>
142               <!--Begin Window Content-->
144               <Grid  Style="{DynamicResource ContentGrid}">
146                 <DockPanel Background ="#1F2227">
147                   <!--Nav Bar-->
149                   <StackPanel DockPanel.Dock="Top" Name="NavContainer" Orientation ="Vertical">
150                     <StackPanel x:Name="NavigationBar"  Orientation ="Horizontal" Height ="70" Background ="#5D5D5D">
151                       <Button Name="NavigateBackButton" Click="NavigateBack"  Style ="{DynamicResource NavButton}" Margin ="4,0,0,0" IsEnabled="false">
152                         <Image Source ="pack://application:,,,/Icons/Warning.ico"/>
153                       </Button>
154                       <Button Name="NavigateNextButton" Click="NavigateNext" Style ="{DynamicResource NavButton}">
155                         <Image Source ="pack://application:,,,/Icons/Warning.ico"/>
156                       </Button>
157                     </StackPanel>
159                     <Rectangle Height ="1" Fill ="#aaaaaa" />
160                   </StackPanel>
162                   <!--Frame-->
164                   <Frame Name ="WizardFrame" VerticalAlignment="Stretch" Background ="black"></Frame>
165                 </DockPanel>
167               </Grid>
169             </DockPanel>
170           </Border>
172         </ControlTemplate>
173       </Setter.Value>
174     </Setter>
175   </Style>
178   <!-- Navigation Window (used for Wizard) Styles-->
180   <Storyboard x:Key="HideNavBar" BeginTime="{x:Null}" TargetProperty="(StackPanel.Opacity)">
181     <DoubleAnimation From="1"  To="0" Duration="0:0:1" RepeatBehavior="1x"/>
182   </Storyboard>
184   <Style x:Key ="NavButton" TargetType ="{x:Type Button}">
185     <Setter Property ="Width" Value ="52"/>
186     <Setter Property ="Height" Value ="52"/>
187     <Setter Property ="Template">
188       <Setter.Value>
189         <ControlTemplate TargetType ="{x:Type Button}">
190           <Canvas>
191             <Ellipse Width ="52" Height ="52" StrokeThickness="5" Stroke="{DynamicResource NavButtonBorder}"/>
192             <Ellipse Name="TBack" Canvas.Top="6" Canvas.Left="6" Width ="40" Height ="40" StrokeThickness="1" Fill ="{DynamicResource NavButtonGradient}" Stroke ="darkblue"/>
193             <ContentPresenter Canvas.Top="11" Canvas.Left="13" Content ="{TemplateBinding Content}" Width ="28"/>
194           </Canvas>
196           <ControlTemplate.Triggers>
197             <Trigger Property ="IsEnabled" Value ="False">
198               <Setter TargetName ="TBack" Property ="Ellipse.Fill" Value ="{DynamicResource NavButtonDisabled}"/>
199               <Setter TargetName ="TBack" Property ="Ellipse.Stroke" Value ="gray"/>
200             </Trigger>
202             <Trigger Property ="IsPressed" Value ="True">
203               <Setter TargetName ="TBack" Property ="Ellipse.Fill" Value ="{DynamicResource NavButtonGradientReversed}"/>
204             </Trigger>
206           </ControlTemplate.Triggers>
207         </ControlTemplate>
208       </Setter.Value>
209     </Setter>
210   </Style>
212   <LinearGradientBrush x:Key="NavButtonBorder" StartPoint="0,0" EndPoint ="0,1">
213     <LinearGradientBrush.GradientStops>
214       <GradientStop Color ="#454545" Offset ="0"/>
215       <GradientStop Color ="#747474" Offset ="0.5"/>
216       <GradientStop Color ="#dcdcdc" Offset ="0.7"/>
217     </LinearGradientBrush.GradientStops>
218   </LinearGradientBrush>
220   <LinearGradientBrush x:Key ="NavButtonGradient" StartPoint="1,0" EndPoint ="0,1">
221     <LinearGradientBrush.GradientStops>
222       <GradientStop Offset ="0" Color ="#A5D6FF"/>
223       <GradientStop Offset ="0.3" Color ="#73BDFF"/>
224       <GradientStop Offset ="0.5" Color ="#2C9DFF"/>
225     </LinearGradientBrush.GradientStops>
226   </LinearGradientBrush>
228   <LinearGradientBrush x:Key ="NavButtonGradientReversed" StartPoint="0,1" EndPoint ="1,0">
229     <LinearGradientBrush.GradientStops>
230       <GradientStop Offset ="0" Color ="#A5D6FF"/>
231       <GradientStop Offset ="0.3" Color ="#73BDFF"/>
232       <GradientStop Offset ="0.5" Color ="#2C9DFF"/>
233     </LinearGradientBrush.GradientStops>
234   </LinearGradientBrush>
237   <LinearGradientBrush x:Key ="NavButtonDisabled" StartPoint="1,0" EndPoint ="0,1">
238     <LinearGradientBrush.GradientStops>
239       <GradientStop Offset ="0" Color ="#E0E0E0"/>
240       <GradientStop Offset ="0.3" Color ="#CBCBCB"/>
241       <GradientStop Offset ="0.5" Color ="#A9A9A9"/>
242     </LinearGradientBrush.GradientStops>
243   </LinearGradientBrush>
246   <!-- Window Bar Styles -->
248   <LinearGradientBrush x:Key ="BorderBrush" StartPoint="0,0" EndPoint ="1,0">
249     <LinearGradientBrush.GradientStops>
250       <GradientStop Offset ="0.3" Color ="darkgray"/>
251       <GradientStop Offset ="0.6" Color ="gray"/>
252       <GradientStop Offset ="0.9" Color ="darkgray"/>
253     </LinearGradientBrush.GradientStops>
254   </LinearGradientBrush>
256   <LinearGradientBrush x:Key ="BarBrush" StartPoint="0,0" EndPoint ="0,1">
257     <LinearGradientBrush.GradientStops>
258       <GradientStop Offset ="0.1" Color ="#D9D9D9"/>
259       <GradientStop Offset ="0.3" Color ="#BFBFBF"/>
260       <GradientStop Offset ="0.6" Color ="#B5B5B5"/>
261     </LinearGradientBrush.GradientStops>
262   </LinearGradientBrush>
264   <LinearGradientBrush x:Key ="GrayGradient" StartPoint="0,0" EndPoint ="0,1">
265     <LinearGradientBrush.GradientStops>
266       <GradientStop Offset ="0" Color ="#E0E0E0"/>
267       <GradientStop Offset ="0.3" Color ="#CBCBCB"/>
268       <GradientStop Offset ="0.5" Color ="#A9A9A9"/>
269     </LinearGradientBrush.GradientStops>
270   </LinearGradientBrush>
272   <LinearGradientBrush x:Key ="BlueGradient" StartPoint="0,0" EndPoint ="0,1">
273     <LinearGradientBrush.GradientStops>
274       <GradientStop Offset ="0" Color ="#A5D6FF"/>
275       <GradientStop Offset ="0.3" Color ="#73BDFF"/>
276       <GradientStop Offset ="0.5" Color ="#2C9DFF"/>
277     </LinearGradientBrush.GradientStops>
278   </LinearGradientBrush>
281   <LinearGradientBrush x:Key ="RedGradient" StartPoint="0,0" EndPoint ="0,1">
282     <LinearGradientBrush.GradientStops>
283       <GradientStop Offset ="0" Color ="#FFC5C5"/>
284       <GradientStop Offset ="0.3" Color ="#FF9E9E"/>
285       <GradientStop Offset ="0.5" Color ="#FF6262"/>
286     </LinearGradientBrush.GradientStops>
287   </LinearGradientBrush>
289   <!-- The nice gray gradient behind all pages, including on non-wizards -->
290   <RadialGradientBrush x:Key="WizardPageBack"  RadiusX="0.8" RadiusY ="0.8">
291     <RadialGradientBrush.GradientStops>
292       <GradientStop Color ="#4F5460" Offset ="0"/>
293       <GradientStop Color ="#1F2227" Offset ="0.47"/>
294     </RadialGradientBrush.GradientStops>
295   </RadialGradientBrush>
297   <LinearGradientBrush x:Key ="DarkGrayGradient" StartPoint="0,0" EndPoint ="0,1">
298     <LinearGradientBrush.GradientStops>
299       <GradientStop Offset ="0" Color ="#8D9196"/>
300       <GradientStop Offset ="0.3" Color ="#545A60"/>
301       <GradientStop Offset ="1" Color ="#545A60"/>
302     </LinearGradientBrush.GradientStops>
303   </LinearGradientBrush>
305   <Style x:Key ="WindowBorder" TargetType ="{x:Type Border}">
306     <Setter Property ="BorderThickness" Value ="2"/>
307     <Setter Property ="BorderBrush" Value ="{StaticResource BorderBrush}"/>
308   </Style>
311   <Style x:Key ="WindowBar" TargetType ="{x:Type Grid}">
312     <Setter Property ="Background" Value ="{StaticResource BarBrush}"/>
313     <Setter Property ="DockPanel.Dock" Value ="Top"/>
314     <Setter Property ="Height" Value ="24"/>
315     <Setter Property ="VerticalAlignment" Value ="Center"/>
316   </Style>
318   <Style x:Key ="DialogWindowBar" TargetType ="{x:Type Grid}" BasedOn="{StaticResource WindowBar}">
319     <Setter Property ="Height" Value ="20"/>
320   </Style>
323   <Style x:Key ="WindowTitle" TargetType ="{x:Type TextBlock}">
324     <Setter Property ="Grid.Row" Value ="0"/>
325     <Setter Property ="Grid.Column" Value ="1"/>
326     <Setter Property ="FontFamily" Value ="Verdana"/>
327     <Setter Property ="FontSize" Value ="12"/>
328     <Setter Property ="Height" Value ="14"/>
329   </Style>
331   <Style x:Key ="DialogWindowTitle" TargetType ="{x:Type TextBlock}" BasedOn="{StaticResource WindowTitle}">
332     <Setter Property ="FontSize" Value ="11"/>
333     <Setter Property ="Height" Value ="14"/>
334     <Setter Property ="Margin" Value ="4,2,2,2"/>
335   </Style>
337   <Style x:Key ="WindowIcon" TargetType ="{x:Type Image}">
338     <Setter Property ="Grid.Row" Value ="0"/>
339     <Setter Property ="Grid.Column" Value ="0"/>
340     <Setter Property ="Width" Value ="16"/>
341     <Setter Property ="Height" Value ="16"/>
342     <Setter Property ="Margin" Value ="2,2,2,2"/>
343   </Style>
345   <Style x:Key ="WindowControlButtons" TargetType ="{x:Type StackPanel}">
346     <Setter Property ="Grid.Row" Value ="0"/>
347     <Setter Property ="Grid.Column" Value ="2"/>
348     <Setter Property ="Orientation" Value ="Horizontal"/>
349   </Style>
351   <!--Style for buttons which appear in dialogs-->
352   <Style x:Key ="DialogButton" TargetType ="{x:Type Button}">
353     <Setter Property ="Margin" Value ="2,2,2,2"/>
354     <Setter Property ="Foreground" Value ="white"/>
355     <Setter Property ="VerticalAlignment" Value ="Center"/>
356     <Setter Property ="Height" Value ="23"/>
357     <Setter Property ="Width" Value ="75"/>
359     <Setter Property ="Template">
360       <Setter.Value>
361         <ControlTemplate TargetType ="{x:Type Button}">
362           <Grid VerticalAlignment ="Center">
363             <Rectangle Name="TBack" Width="{TemplateBinding Width}" Height ="{TemplateBinding Height}" Stroke ="white" Fill ="{StaticResource DarkGrayGradient}" RadiusX ="2" RadiusY ="2"/>
364             <Rectangle Name="BBack" Opacity="0" Width="{TemplateBinding Width}" Height ="{TemplateBinding Height}" Stroke ="white" Fill ="{StaticResource BlueGradient}" RadiusX ="2" RadiusY ="2"/>
365             <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment ="Center"/>
366           </Grid>
368           <ControlTemplate.Triggers>
369             <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
370               <BeginStoryboard>
371                 <Storyboard>
372                   <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0"  To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
373                 </Storyboard>
374               </BeginStoryboard>
375             </EventTrigger>
377             <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
378               <BeginStoryboard>
379                 <Storyboard>
380                   <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1"  To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
381                 </Storyboard>
382               </BeginStoryboard>
383             </EventTrigger>
385             <Trigger Property ="IsEnabled" Value ="false">
386               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="#dddddd"/>
387               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
388             </Trigger>
390             <Trigger Property ="IsFocused" Value ="true">
391               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{StaticResource GrayGradient}"/>
392             </Trigger>
394           </ControlTemplate.Triggers>
395         </ControlTemplate>
396       </Setter.Value>
397     </Setter>
399   </Style>
401   <!--Style for "control buttons", the minimize and maximize buttons-->
403   <Style x:Key ="ControlButton" TargetType ="{x:Type Button}">
404     <Setter Property ="Width" Value ="18"/>
405     <Setter Property ="Height" Value ="16"/>
406     <Setter Property ="Margin" Value ="2,2,2,2"/>
407     <Setter Property ="Foreground" Value ="white"/>
408     <Setter Property ="IsTabStop" Value ="false"/>
410     <Setter Property ="Template">
411       <Setter.Value>
412         <ControlTemplate TargetType ="{x:Type Button}">
413           <Grid>
414             <Rectangle Name="TBack" Width="18" Height ="16" Stroke ="white" Fill ="{StaticResource GrayGradient}" RadiusX ="2" RadiusY ="2"/>
415             <Rectangle Name="BBack" Opacity="0" Width="18" Height ="16" Stroke ="#001997" Fill ="{StaticResource BlueGradient}" RadiusX ="2" RadiusY ="2"/>
416             <ContentPresenter Content="{TemplateBinding Content}" Width ="8" HorizontalAlignment ="Center"/>
417           </Grid>
419           <ControlTemplate.Triggers>
420             <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
421               <BeginStoryboard>
422                 <Storyboard>
423                   <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0"  To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
424                 </Storyboard>
425               </BeginStoryboard>
426             </EventTrigger>
428             <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
429               <EventTrigger.Actions>
430                 <BeginStoryboard>
431                   <Storyboard>
432                     <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1"  To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
433                   </Storyboard>
434                 </BeginStoryboard>
435               </EventTrigger.Actions>
436             </EventTrigger>
438             <Trigger Property ="IsEnabled" Value ="false">
439               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="#dddddd"/>
440               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
441             </Trigger>
443           </ControlTemplate.Triggers>
444         </ControlTemplate>
445       </Setter.Value>
446     </Setter>
448   </Style>
450   <Style x:Key ="CloseButton" TargetType ="{x:Type Button}">
451     <Setter Property ="Width" Value ="18"/>
452     <Setter Property ="Height" Value ="16"/>
453     <Setter Property ="Margin" Value ="2,2,4,2"/>
454     <Setter Property ="Foreground" Value ="white"/>
455     <Setter Property ="IsTabStop" Value ="false"/>
457     <Setter Property ="Template">
458       <Setter.Value>
459         <ControlTemplate TargetType ="{x:Type Button}">
460           <Grid HorizontalAlignment ="Center">
461             <Rectangle Name="TBack" Width="18" Height ="{TemplateBinding Height}" Stroke ="white" Fill ="{StaticResource GrayGradient}" RadiusX ="2" RadiusY ="2"/>
462             <Rectangle Name="RBack" Width="18" Height ="{TemplateBinding Height}" Stroke ="#AF5C5C" Opacity="0" Fill ="{StaticResource RedGradient}" RadiusX ="2" RadiusY ="2"/>
463             <ContentPresenter Content="{TemplateBinding Content}" Width ="8" HorizontalAlignment ="Center"/>
464           </Grid>
466           <ControlTemplate.Triggers>
467             <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
468               <EventTrigger.Actions>
469                 <BeginStoryboard>
470                   <Storyboard>
471                     <DoubleAnimation Storyboard.TargetName="RBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0"  To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
472                   </Storyboard>
473                 </BeginStoryboard>
474               </EventTrigger.Actions>
475             </EventTrigger>
477             <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
478               <EventTrigger.Actions>
479                 <BeginStoryboard>
480                   <Storyboard>
481                     <DoubleAnimation Storyboard.TargetName="RBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1"  To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
482                   </Storyboard>
483                 </BeginStoryboard>
484               </EventTrigger.Actions>
485             </EventTrigger>
487             <Trigger Property ="IsEnabled" Value ="false">
488               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="#dddddd"/>
489               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
490             </Trigger>
491           </ControlTemplate.Triggers>
492         </ControlTemplate>
493       </Setter.Value>
494     </Setter>
496   </Style>
498   <!--Dialog-->
500   <Style x:Key ="DialogCloseButton" TargetType ="{x:Type Button}" BasedOn="{StaticResource CloseButton}">
501     <Setter Property ="Width" Value ="18"/>
502     <Setter Property ="Height" Value ="14"/>
503   </Style>
506   <Style x:Key ="DialogIcon" TargetType ="{x:Type Image}">
507     <Setter Property ="Width" Value ="48"/>
508     <Setter Property ="Margin" Value ="2,2,2,2"/>
509   </Style>
511   <Style x:Key ="DialogMessage" TargetType ="{x:Type TextBlock}">
512     <Setter Property ="FontSize" Value ="14"/>
513     <Setter Property="Foreground" Value="white"/>
514     <Setter Property="TextWrapping" Value="Wrap"/>
515     <Setter Property ="Margin" Value ="8,2,8,2"/>
516   </Style>
519   <!--Menu Bar-->
521   <Style TargetType="{x:Type Menu}">
522     <Setter Property="Background" Value="#545A60"/>
523   </Style>
525   <Style x:Key="SubMenuItem"  TargetType="{x:Type TextBlock}">
526     <Setter Property="Foreground" Value="black"/>
527   </Style>
529   <!--Toolbar-->
531   <Style TargetType="{x:Type ToolBar}">
532     <Setter Property="Background" Value="#545A60"/>
533   </Style>
535   <Style x:Key="ToolBarCombo"  TargetType="{x:Type ComboBox}">
536     <Setter Property="Background" Value="#545A60"/>
537     <Setter Property="Margin" Value="2,2,2,2"/>
538     <Setter Property="BorderBrush" Value="#cccccc"/>
539     <Setter Property ="Foreground" Value="#ffffff"/>
540   </Style>
543   <!--Content Grid-->
545   <Style TargetType ="{x:Type TextBlock}">
546     <Setter Property ="Foreground" Value ="white"/>
547   </Style>
549   <Style TargetType ="{x:Type CheckBox}">
550     <Setter Property ="Foreground" Value ="white"/>
551   </Style>
553   <Style x:Key ="DialogContentGrid" TargetType ="{x:Type Grid}">
554     <Setter Property ="Background" Value ="#1F2227"/>
555     <Setter Property ="VerticalAlignment" Value ="Stretch"/>
556   </Style>
559   <Style x:Key ="ContentGrid" TargetType ="{x:Type Grid}">
560     <Setter Property ="Background" Value ="#545A60"/>
561     <Setter Property ="VerticalAlignment" Value ="Stretch"/>
562   </Style>
564   <!-- Designer -->
566   <Style x:Key="NormalProperty" TargetType ="{x:Type TextBlock}">
567     <Setter Property ="Background" Value ="Transparent"/>
568   </Style>
570   <Style x:Key="HighlightedProperty" TargetType ="{x:Type TextBlock}">
571     <Setter Property ="Background" Value ="Gray"/>
572   </Style>
575   <!--Style for toolbar buttons -->
577   <Style x:Key="ToolbarButtonStyle" TargetType="{x:Type Button}">
578     <Setter Property ="Foreground" Value ="White"/>
579     <Setter Property ="VerticalAlignment" Value ="Center"/>
580     <Setter Property ="StackPanel.Margin" Value ="2,0,2,0"/>
581     <Setter Property ="Height" Value ="24"/>
582     <Setter Property ="Template">
583       <Setter.Value>
584         <ControlTemplate TargetType ="{x:Type Button}">
585           <Grid VerticalAlignment ="Stretch" HorizontalAlignment="Stretch" Width ="{TemplateBinding Width}">
586             <Rectangle Name="TBack" Height="24" Width ="{TemplateBinding Width}"/>
587             <ContentPresenter Name="TContent"  Content="{TemplateBinding Content}" Margin ="0,0,2,0"/>
588           </Grid>
589           <ControlTemplate.Triggers>
590             <Trigger Property ="IsMouseOver" Value="True">
591               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
592               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource GrayGradient}"/>
593             </Trigger>
594             <Trigger Property ="IsPressed" Value="True">
595               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
596               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource BlueGradient}"/>
597             </Trigger>
598           </ControlTemplate.Triggers>
599         </ControlTemplate>
600       </Setter.Value>
601     </Setter>
602   </Style>
604     <!-- Toggle button style -->
606   <Style x:Key="ToggleButtonStyle" TargetType="{x:Type ToggleButton}">
607     <Setter Property ="Template">
608       <Setter.Value>
609         <ControlTemplate TargetType ="{x:Type ToggleButton}">
610           <Grid VerticalAlignment ="Stretch" HorizontalAlignment="Stretch" Width ="{TemplateBinding Width}">
611             <Rectangle Name="TBack" Height="24" Width ="{TemplateBinding Width}"/>
612             <ContentPresenter Name="TContent"  Content="{TemplateBinding Content}"/>
613           </Grid>
614           <ControlTemplate.Triggers>
615             <Trigger Property ="IsMouseOver" Value="True">
616               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
617               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource GrayGradient}"/>
618             </Trigger>
619             <Trigger Property ="IsChecked" Value="True">
620               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
621               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource BlueGradient}"/>
622             </Trigger>
623           </ControlTemplate.Triggers>
624         </ControlTemplate>
625       </Setter.Value>
626     </Setter>
627   </Style>
629     <Style x:Key="ConditionButtonStyle" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource ToggleButtonStyle}">
630         <Setter Property ="Width" Value ="24"/>
631     </Style>
633   <!--Wizard Pages-->
635   <Style x:Key="WizardPageStyle" TargetType ="{x:Type wpf:WizardPageFunction}">
636     <Setter Property ="Template">
637       <Setter.Value>
638         <ControlTemplate TargetType ="{x:Type wpf:WizardPageFunction}">
640           <Grid VerticalAlignment ="Stretch" HorizontalAlignment="Stretch">
641             <Grid VerticalAlignment ="Stretch"  Background ="{StaticResource WizardPageBack}">
642               <StackPanel Orientation ="Vertical" VerticalAlignment ="Center" HorizontalAlignment="Center" Margin ="4,4,4,4">
643                 <Grid HorizontalAlignment ="Left" VerticalAlignment ="Center">
644                   <Grid.ColumnDefinitions>
645                     <ColumnDefinition Width="180" />
646                     <ColumnDefinition />
647                   </Grid.ColumnDefinitions>
648                   <Grid.RowDefinitions>
649                     <RowDefinition/>
650                     <RowDefinition/>
651                     <RowDefinition/>
652                     <RowDefinition/>
653                   </Grid.RowDefinitions>
657                   <TextBlock Name="WizardTitle" Foreground="white" FontSize="18" Grid.Row ="0" Grid.Column ="0" Grid.ColumnSpan="2" Text="{TemplateBinding Title}" />
658                   <TextBlock Name="WizardText" Foreground="white" FontSize="14" Grid.Row ="1" Grid.Column ="0" Grid.ColumnSpan="2" Text="{TemplateBinding Instructions}"/>
660                   <Rectangle Grid.Row="2" Grid.Column ="0" Grid.ColumnSpan="2" Height="20"/>
662                   <ContentPresenter  Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" Content="{TemplateBinding Content}"/>
663                 </Grid>
664               </StackPanel>
665             </Grid>
667             <Grid x:Name="ErrorBubble" Width="250" Height ="Auto" Visibility="Collapsed">
668               <StackPanel Orientation="Vertical">
669                 <StackPanel Orientation="Horizontal" Background="#dedede" VerticalAlignment ="Stretch" Margin="0,20,0,0">
670                   <Image Width="36" Height="36" Margin ="4,4,4,4" Source="pack://application:,,,/Icons/Warning.ico"/>
671                   <StackPanel Orientation ="Vertical" VerticalAlignment ="Center">
672                     <TextBlock x:Name="ErrorBubbleTitle" Margin="4,4,4,4" FontSize="14" Foreground="steelblue">Error Title goes here</TextBlock>
673                     <TextBlock x:Name="ErrorBubbleContent" Margin="4,4,4,4" FontSize="12" Foreground="#444444" Width="200" TextWrapping="Wrap">Error Title goes here</TextBlock>
674                   </StackPanel>
675                 </StackPanel>
676                 <Polygon Points="0,0 30,0 15,20" Fill="#dedede" HorizontalAlignment="Center"/>
677                 <!--15,20 0,40 30,40-->
678               </StackPanel>
679             </Grid>
681           </Grid>
683         </ControlTemplate>
684       </Setter.Value>
685     </Setter>
686   </Style>
688   <!-- Style for hover buttons that go from silver to blue -->
690   <Style x:Key ="WizardImageButton" TargetType ="{x:Type Button}">
691     <Setter Property ="Template">
692       <Setter.Value>
693         <ControlTemplate TargetType ="{x:Type Button}">
694           <Grid>
695             <Rectangle Name ="TBack" Fill="{DynamicResource GrayGradient}" RadiusX="4" RadiusY="4" Stroke ="#cccccc" Width ="{TemplateBinding Width}" Height ="{TemplateBinding Height}"/>
696             <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center"  VerticalAlignment="Center"/>
697           </Grid>
698           <ControlTemplate.Triggers>
699             <Trigger Property ="IsMouseOver" Value="True">
700               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
701               <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource BlueGradient}"/>
702             </Trigger>
703           </ControlTemplate.Triggers>
704         </ControlTemplate>
705       </Setter.Value>
706     </Setter>
707   </Style>
709   
710   <!-- The style of all comboboxes, including on non-wizards -->
712   <Style x:Key ="WizardComboBox" TargetType ="{x:Type ComboBox}">
713     <Setter Property ="Background" Value ="transparent"/>
714     <Setter Property ="ItemTemplate" Value ="{DynamicResource WizardComboItemTemplate}"/>
715     <Setter Property ="BorderBrush" Value ="#cccccc"/>
716     <Style.Triggers>
717       <Trigger Property ="IsMouseOver" Value="True">
718         <Setter Property="BorderBrush" Value ="white"/>
719       </Trigger>
720     </Style.Triggers>
721   </Style>
723   <!-- The style of the "Open in designer" button at the end of the wizard-->
725   <Style x:Key="WizardLinkButton" TargetType="{x:Type Button}">
726     <Setter Property="Cursor" Value="Hand"/>
727     <Setter Property ="Foreground" Value ="steelblue"/>
728     <Setter Property ="Template">
729       <Setter.Value>
730         <ControlTemplate TargetType ="{x:Type Button}">
731           <ContentPresenter Content="{TemplateBinding Content}"/>
732           <ControlTemplate.Triggers>
733             <Trigger Property ="IsMouseOver" Value ="true">
734               <Setter Property ="Foreground" Value ="White"/>
735             </Trigger>
736           </ControlTemplate.Triggers>
737         </ControlTemplate>
738       </Setter.Value>
739     </Setter>
740   </Style>
742   <DataTemplate x:Key ="WizardComboItemTemplate">
743     <DockPanel>
744       <ContentPresenter Content="{TemplateBinding Content}" />
745     </DockPanel >
746   </DataTemplate>
748   <!-- The style of all textboxes, including on non-wizards -->
750   <Style x:Key ="WizardEntryBox" TargetType ="{x:Type TextBox}">
751     <Setter Property ="Foreground" Value ="white"/>
752     <Setter Property ="Background" Value ="transparent"/>
753     <Setter Property ="BorderBrush" Value ="#cccccc"/>
754     <Setter Property ="Padding" Value ="2,2,2,2"/>
755     <Style.Triggers>
756       <Trigger Property ="IsMouseOver" Value="True">
757         <Setter Property="BorderBrush" Value ="white"/>
758       </Trigger>
759       <Trigger Property ="IsFocused" Value="True">
760         <Setter Property ="BorderBrush" Value ="white"/>
761         <Setter Property ="Background" Value ="#545A60"/>
762       </Trigger>
764     </Style.Triggers>
765   </Style>
767   <Style x:Key="TreeViewStyle" TargetType="{x:Type TreeView}">
768     <Setter Property="Border.BorderThickness" Value="1"/>
769     <Setter Property="Border.BorderBrush" Value="white"/>
770     <Setter Property="Foreground" Value="white"/>
771   </Style>
773   <!-- Others -->
775   
776   <Style TargetType ="{x:Type TreeView}">
777     <Setter Property="Background" Value="transparent"/>
778   </Style>
780   <Style x:Key ="ChooseButton" TargetType ="{x:Type Button}">
781     <Setter Property ="Width" Value ="100"/>
782     <Setter Property ="Height" Value ="100"/>
783     <Setter Property ="Margin" Value ="2,2,2,2"/>
784     <Setter Property ="Foreground" Value ="black"/>
786     <Setter Property ="Template">
787       <Setter.Value>
788         <ControlTemplate TargetType ="{x:Type Button}">
789           <Grid  HorizontalAlignment ="Center" VerticalAlignment ="Center">
790             <Rectangle Name="TBack" Width="100" Height ="100" Stroke ="#C8C8C8" Fill ="{StaticResource DarkGrayGradient}" RadiusX ="1" RadiusY ="1"/>
791             <Rectangle Name="BBack" Opacity="0" Width="100" Height ="100" Stroke ="#C8C8C8" Fill ="{StaticResource BlueGradient}" RadiusX ="1" RadiusY ="1"/>
792             <ContentPresenter HorizontalAlignment ="Center" Width="100" Content="{TemplateBinding Content}" Margin="2,2,2,2"/>
793           </Grid>
796           <ControlTemplate.Triggers>
798             <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
799               <EventTrigger.Actions>
800                 <BeginStoryboard>
801                   <Storyboard>
802                     <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0"  To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
803                   </Storyboard>
804                 </BeginStoryboard>
805               </EventTrigger.Actions>
806             </EventTrigger>
808             <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
809               <EventTrigger.Actions>
810                 <BeginStoryboard>
811                   <Storyboard>
812                     <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1"  To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
813                   </Storyboard>
814                 </BeginStoryboard>
815               </EventTrigger.Actions>
816             </EventTrigger>
818           </ControlTemplate.Triggers>
819         </ControlTemplate>
820       </Setter.Value>
821     </Setter>
823   </Style>
825   <!--Tab Buttons-->
826   <Style x:Key ="TabButton" TargetType ="{x:Type TabItem}">
827     <Setter Property ="Foreground" Value="white"/>
828     <Setter Property ="Template">
829       <Setter.Value>
830         <ControlTemplate TargetType="{x:Type TabItem}">
831           <Grid Margin ="2,4,2,2">
832             <Rectangle Name="TBack" Fill="#000000" Stroke ="#aaaaaa" RadiusX ="4" RadiusY ="4" Width ="110" Height ="24" />
833             <ContentPresenter Name="TContent"  Content="{TemplateBinding Header}" HorizontalAlignment="Center"  VerticalAlignment="Center"/>
834           </Grid>
835           <ControlTemplate.Triggers>
836             <Trigger Property ="IsSelected" Value ="True">
837               <Setter TargetName="TBack" Property ="Rectangle.Fill" Value ="{StaticResource GrayGradient}"/>
838               <Setter Property ="Foreground" Value="black"/>
839               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#444444"/>
840             </Trigger>
841             <Trigger Property ="IsMouseOver" Value ="True">
842               <Setter TargetName="TBack" Property ="Rectangle.Fill" Value ="{StaticResource BlueGradient}"/>
843               <Setter Property ="Foreground" Value="white"/>
844               <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#001997"/>
845             </Trigger>
846           </ControlTemplate.Triggers>
847         </ControlTemplate>
848       </Setter.Value>
849     </Setter>
850   </Style>
852   <RadialGradientBrush x:Key ="TabGrayGradient" RadiusX="0.35" RadiusY ="3" Center="0.5,1.6">
853     <RadialGradientBrush.GradientStops>
854       <GradientStop Offset="0.5" Color ="gray"/>
855       <GradientStop Offset="1" Color ="black"/>
856     </RadialGradientBrush.GradientStops>
857   </RadialGradientBrush>
859   <RadialGradientBrush x:Key ="TabBlueGradient" RadiusX="0.35" RadiusY ="3" Center="0.5,1.6">
860     <RadialGradientBrush.GradientStops>
861       <GradientStop Offset="0.5" Color ="steelblue"/>
862       <GradientStop Offset="1" Color ="black"/>
863     </RadialGradientBrush.GradientStops>
864   </RadialGradientBrush>
866 </ResourceDictionary>